﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Valorar usuario
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Valorar usuario</h2>

<% using (Html.BeginForm()) { %>
<%: Html.ValidationSummary(false) %>
<%: Html.Label("Por favor ingrese una valoracion correspondiente para el usuario: ") %>
<% List<UI.ComplexEntities.Valoracion> lista = new List<UI.ComplexEntities.Valoracion>(); 
   lista.Add(new UI.ComplexEntities.Valoracion(){ Id = 10, Nombre = "Bueno"});
   lista.Add(new UI.ComplexEntities.Valoracion(){ Id = 5, Nombre = "Neutro"});
   lista.Add(new UI.ComplexEntities.Valoracion(){ Id = 1, Nombre = "Malo"});
   %>

<%: Html.DropDownList("cboValoracion", new SelectList(lista.Select(x => new { Value = x.Id, Text = x.Nombre }),"Value","Text")) %>

<input type="submit" value="Aceptar" class="btn btn-primary" />

<%} %>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsSection" runat="server">

</asp:Content>
